import { MockMethod } from "vite-plugin-mock";

const dataList = {
  pageNum: 1,
  pageSize: 10,
  pages: 1,
  rows: 6,
  list: [
    {
      pageNum: 1,
      pageSize: 10,
      id: 1,
      userName: "zhangsan",
      password: "123456",
      name: "张三",
      age: 18,
      photo: null,
      nickName: null,
      phoneNum: "18823808011",
      email: null,
      deviceId: "DEFAULT",
      area: null,
      address: null,
      companyName: null,
      wxCode: null,
      userType: "3",
      activeStatus: "Y",
      createUser: 1,
      createTime: "2021-08-03 02:28:48",
      lastUpdateUser: 1,
      lastUpdateTime: "2021-08-03 02:28:56"
    },
    {
      pageNum: 1,
      pageSize: 10,
      id: 2,
      userName: "zhangsan2",
      password: "123456",
      name: "张三2",
      age: 18,
      photo: null,
      nickName: null,
      phoneNum: "18823808011",
      email: null,
      deviceId: "DEFAULT",
      area: null,
      address: null,
      companyName: null,
      wxCode: null,
      userType: "3",
      activeStatus: "Y",
      createUser: 1,
      createTime: "2021-08-03 02:28:48",
      lastUpdateUser: 1,
      lastUpdateTime: "2021-08-03 02:28:56"
    },
    {
      pageNum: 1,
      pageSize: 10,
      id: 3,
      userName: "zhangsan3",
      password: "123456",
      name: "张三3",
      age: 18,
      photo: null,
      nickName: null,
      phoneNum: "18823808011",
      email: null,
      deviceId: "DEFAULT",
      area: null,
      address: null,
      companyName: null,
      wxCode: null,
      userType: "3",
      activeStatus: "Y",
      createUser: 1,
      createTime: "2021-08-03 02:28:48",
      lastUpdateUser: 2,
      lastUpdateTime: "2021-09-02 03:30:14"
    },
    {
      pageNum: 1,
      pageSize: 10,
      id: 8,
      userName: "shanghu1",
      password: "123456",
      name: "商户1",
      age: 11,
      photo: "",
      nickName: "",
      phoneNum: "11",
      email: "shanghu1",
      deviceId: "",
      area: "",
      address: "",
      companyName: "",
      wxCode: "",
      userType: "2",
      activeStatus: "Y",
      createUser: 2,
      createTime: "2021-09-02 03:26:51",
      lastUpdateUser: 2,
      lastUpdateTime: "2021-09-02 03:26:51"
    },
    {
      pageNum: 1,
      pageSize: 10,
      id: 10,
      userName: "zhangsan5",
      password: "123456",
      name: "张三5",
      age: 18,
      photo: null,
      nickName: null,
      phoneNum: "18823808055",
      email: null,
      deviceId: "",
      area: null,
      address: null,
      companyName: null,
      wxCode: null,
      userType: "1",
      activeStatus: "Y",
      createUser: 1,
      createTime: "2021-09-02 05:58:30",
      lastUpdateUser: null,
      lastUpdateTime: null
    },
    {
      pageNum: 1,
      pageSize: 10,
      id: 13,
      userName: "test222",
      password: "123456",
      name: "测试222",
      age: 99,
      photo: null,
      nickName: null,
      phoneNum: "13488886662",
      email: "13488886662@139.com",
      deviceId: null,
      area: null,
      address: null,
      companyName: null,
      wxCode: null,
      userType: "3",
      activeStatus: "Y",
      createUser: 3,
      createTime: "2021-09-02 10:13:45",
      lastUpdateUser: 3,
      lastUpdateTime: "2021-09-02 10:13:45"
    }
  ],
  params: null
};

export default [
  {
    url: "/userList",
    method: "get",
    response: () => {
      return {
        code: 200,
        data: dataList
      };
    }
  }
] as MockMethod[];
